<template>
  <p>{{ count }}</p>
  <p>{{ msg }}</p>
  <button @click="increment">
    Increment
  </button>
</template>

<script lang="ts" setup>
import { ref } from 'vue'

defineProps({ // 在setup中被内置了
  msg: {
    type: String,
    default: '21212'
  }
})

const count = ref(100)
const increment = () => {
  count.value++
}
</script>

<style scoped>
a {
  color: #42b983;
}

label {
  margin: 0 0.5em;
  font-weight: bold;
}

code {
  background-color: #eee;
  padding: 2px 4px;
  border-radius: 4px;
  color: #304455;
}
</style>
